A5Storage::SubContainer CopyContentsTo Method

Syntax

.CopyContentsTo as L (TargetContainer as A5Storage::SubContainer)

Arguments

TargetContainerA5Storage::SubContainer

The target Storage SubContainer to copy the data items to.

Returns

ResultLogical

Returns .T. if the operation succeeds, otherwise .F. (see .CallResult for additional error information.)

Description

This function will copy all items to another SubContainer. Any existing items will be replaced.

Example

dim SubContainer as A5Storage::SubContainer = null_value()
dim TargetSubContainer as A5Storage::SubContainer = null_value()

CallResult = A5Storage::SubContainer::Open(SubContainer, "Provider='Disk';Container='c:\A5Webroot';", "logs")
? CallResult.Success
= .T.

CallResult = A5Storage::SubContainer::Open(TargetSubContainer, "Provider='Disk';Container='c:\A5Webroot2';", "logs")
? CallResult.Success
= .T.

? SubContainer.CopyContentsTo(TargetSubContainer)
= .T.